package com.dayuanit.atm.util;

import java.util.Random;

public class BankCardUtils {

    public static String createCardNum() {
        final Random random = new Random();
        final StringBuilder sx = new StringBuilder();
        for (int i = 0; i < 5; i++) {
            sx.append(Math.abs(random.nextInt() % 10));
        }
        System.out.println("银行卡号为：" + sx.toString());
        return sx.toString();
    }

    public static void main(String[] args) {
//        BankCardUtils.createCardNum();

//        -1155869325
//        431529176
//        1761283695
//        1749940626
//        892128508

        final Random random = new Random(100);
//        final Random random = new Random();
        for (int i = 0; i < 5; i++) {
            System.out.println(random.nextInt());
        }

    }
}
